<template>
  <VSelect v-bind="$attrs" :options="siteOptions" />
</template>

<script setup>
const props = defineProps({
  options: { type: Object, default: () => ({}) },
  platform_id: { type: Number, default: 0 },
})
const siteOptions = computed(() => (props.options?.platform_site || []).find(d => props.platform_id === d.platform_id)?.sites.map(d => ({ label: d.site_name, value: d.site_id })) || [])
</script>